package com.gitee.xhs.customFunction;

import com.gitee.xhs.sampleRecod.transactionRecord.Transaction;
import org.apache.flink.api.common.functions.FilterFunction;

/**
 * @author BigHead
 * @date 2022/7/19 10:57
 * @description OperatorFilter
 */
public class OperatorFilter implements FilterFunction<Transaction> {

    @Override
    public boolean filter(Transaction value) throws Exception {
        return value.getAmount() > 0;
    }

}
